package com.hmy.finance.service.core.rdto;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Refresh Contract Account Of Age Rdto
 * used to refresh age of contract account,after contract arrears offset
 *
 * @author songkf
 */
@Data
public class RefreshContractAccountOfAgeRdto implements Serializable {
    private static final long serialVersionUID = 8014403669619315670L;
    /**
     * All Success
     */
    private Boolean allSuccess;
    /**
     * Contract Refresh Result List
     */
    private List<ContractRefreshResult> contractRefreshResultList;

    public Boolean isAllSuccess() {
        return allSuccess;
    }

    @Data
    public static class ContractRefreshResult implements Serializable {
        private static final long serialVersionUID = -2423002969516869075L;
        private Long contractId;
        private Boolean success;

        public Boolean isSuccess() {
            return success;
        }
    }
}
